home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fd="http://www.bradsoft.com/feeddemon/xmlns/1.0/">
- <xsl:output method="html"/>
-
- <xsl:template match="newspaper">
- <html>
- <head>
- <title>Newspaper</title>
- <style type="text/css">
- body {
- font-size: 100%;
- font-family: Georgia, serif;
- margin: 0;
- color: #255D00;
- background-color: #F1FFE5;
- padding: 20px 28px;
- filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#F9FFF4,endColorStr=#B7FF7D);
- }
- a { color: #2C7100; }
- a:hover { text-decoration: underline; }
- span.nodescription { font-size: x-small; color: #1F4F00;}
- div.newspapertitle { text-transform: uppercase; font-weight: bold; font-size: 130%; margin-bottom: 20px;}
- div.newsitem {width: 100%; margin-bottom: 24px; margin-top: 16px }
- div.newsitemdateline { font-size: x-small; font-style: italic; }
- div.newsitemtitlebox { padding: 12px 14px; float: right; border: 1px solid #5CC400; border-right-width: 3px; border-bottom-width: 3px; margin-left: 18px; margin-bottom: 8px; text-align: right; width: 45%; background-color: #C6FFA1;}
- div.newsitemtitlebox a { text-decoration: none; }
- div.newsitemtitle { font-weight: bold; border-bottom: 1px dotted #5CC400; padding-bottom: 8px; margin-bottom: 4px;}
- div.newsitemcontent { line-height: 140%; }
- hr.newsitembreak { color: #5CC400; height: 1px; }
- </style>
- </head>
- <body>
- <div class="newspapertitle">
- <xsl:value-of select="title" disable-output-escaping="yes"/>
- </div>
- <xsl:variable name="newspapertype" select="@type"/>
- <xsl:for-each select="channel/item">
- <xsl:sort select="title"/>
- <div class="newsitem">
- <div class="newsitemtitlebox">
- <div class="newsitemtitle">
- <xsl:variable name="itemlink" select="link"/>
- <a href="{$itemlink}"><xsl:value-of select="title" disable-output-escaping="yes"/></a>
- </div>
- <div class="newsitemdateline">
- <xsl:variable name="srclink" select="source/@htmlUrl"/>
- <a href="{$srclink}"><xsl:value-of select="source"/></a>
- <br /><xsl:value-of select="fd:dateDisplay"/>
- <!-- add link to comments if available -->
- <xsl:if test="comments">
- <xsl:variable name="commentlink" select="comments"/>
- <xsl:variable name="commentimg" select="'$IMAGEDIR$comments.gif'"/>
- | <a href="{$commentlink}"><img src="{$commentimg}" border="0" align="absmiddle" hspace="6"/></a>
- </xsl:if>
- <!-- add link to enclosure if available -->
- <xsl:if test="enclosure">
- <xsl:variable name="enclosurelink" select="enclosure/@url"/>
- <xsl:variable name="enclosureimg" select="'$IMAGEDIR$enclosure.gif'"/>
- | <a href="{$enclosurelink}"><img src="{$enclosureimg}" align="absmiddle" border="0" hspace="6"/></a>
- </xsl:if>
-
- </div>
- </div>
- <div class="newsitemcontent">
- <xsl:value-of select="description" disable-output-escaping="yes"/>
- </div>
- </div>
- <xsl:if test="$newspapertype != 'newsitem'">
- <hr class="newsitembreak" />
- </xsl:if>
- </xsl:for-each>
- </body>
- </html>
- </xsl:template>
-
-
- </xsl:stylesheet>